<!-- 首页底部标签栏 -->
<template>
<div class='tabbar'>
    <ul>
        <router-link to="/home" tag="li">
            <div class="tab-con">
                <i class="iconfont icon-shouye1" v-if="$route.path.includes('/home')"></i>
                <i class="iconfont icon-shouye" v-else></i>
                <span>首页</span>
            </div>
        </router-link>
        <router-link to="/collection" tag="li" >
            <div class="tab-con">
                <i class="iconfont icon-faxian1" v-if="$route.path.includes('/collection')"></i>
                <i class="iconfont icon-faxian" v-else></i>
                <span>收藏</span>
            </div>
        </router-link>
        <router-link to="/mine" tag="li">
            <div class="tab-con">
                <i class="iconfont icon-dongtaixuanzhong" v-if="$route.path.includes('/mine')"></i>
                <i class="iconfont icon-dongtaiweixuanzhong" v-else></i>
                <span>我的</span>
            </div>
        </router-link>
    </ul>
</div>
</template>

<script>
//这里可以导入其他文件（比如：组件，工具js，第三方插件js，json文件，图片文件等等）
//例如：import 《组件名称》 from '《组件路径》';

export default {
  //import引入的组件需要注入到components对象中才能使用
  components: {},
  data() {
    //这里存放数据
    return {};
  },
  //计算属性 类似于data概念
  computed: {},

  //方法集合
  methods: {},
};
</script>
<style lang="less">
.router-link-active {
  color: skyblue;
}
.tabbar {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 999;
  ul {
    height: 4.4rem;
    background: #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    li {
      flex: 1;
      text-align: center;
      i {
        font-size: 1.8rem;
      }
      span {
        display: block;
      }
    }
  }
}
</style>